package com.jic.manager.mapper;

import com.jic.manager.entity.Region;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 销售区域表
 * @author : 
 * @email : 
 * @since : 2020-02-08 05:59:10
 * @version : v1.0.0
 */
@Mapper
public interface  RegionMapper {

    long insert(Region region);

    long delete(Long id);

    long update(Region region);

    Region queryByPrimaryKey(Long id);

    List<Region> query(Region region);

    List<Region> queryPage(@Param("startIndex") int startIndex, @Param("limit") int limit, @Param("region") Region region);

    long queryPageCount(Region region);
}